package com.wkx.mapper;

import com.wkx.pojo.Menu;
import com.wkx.pojo.Roles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<Menu> selectMenus(@Param("parent_id") Integer parent_id,@Param("roles") List<Roles> roles);

    List<Menu> selectMenusByRid(Integer rid);

    int deleteMenusByRid(Integer rid);

    void insertMenus(@Param("menus") Integer menus, @Param("rid") Integer rid);
}